package cn.tradewin.advisor.persist.services;

import java.util.List;
import java.util.Map;

import cn.tradewin.advisor.persist.model.Advcalendar;
import cn.tradewin.advisor.persist.model.CalendarCategory;
import cn.tradewin.advisor.persist.model.CalendarDates;
import cn.tradewin.advisor.persist.model.CodeLabel;

public interface CalendarService {
	Advcalendar getCalendar(String id);
	int addCalendar(Advcalendar calendar);
	void addCalendarWithWeekend(Advcalendar calendar, List<CalendarDates> dates);
	List<Advcalendar> getCalendars();
	List<CodeLabel> getCalendarCategory(String locale);
	List<CalendarCategory> getCalendarAllCategory();
	int delCalendarCategory(Byte id);
	int addCalendarCategory(CalendarCategory category);
	List<CalendarDates> getCalendarDates(String calendarId);
	int addCalendarDates(List<CalendarDates> dates);
	int delCalendarDates(Map<String, Object> param);
	int delCalendarDate(String calendarId, String date);
}
